package pers.cz.common.annotation;

import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Target(TYPE)
@Retention(RUNTIME)
public @interface Sharding {

    /**
     * 描述原始表名和分区后缀之间的分隔符，默认"_"
     */
    String appender() default "_";

    Rule[] rules();

}
